package com.copa.module.goods.mapper;

import com.copa.module.goods.domain.entity.GoodsSpecificationsEntity;
import com.copa.module.goods.domain.vo.GoodSpecificationsVo;
import com.copa.module.goods.domain.vo.GoodsProductVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-08
 * @function t_goods_specifications表 Mapper 接口
 */
@Mapper
public interface GoodsSpecificationsDao extends BaseMapper<GoodsSpecificationsEntity> {

    Boolean insertGoodsSpecificationsList(@Param("goodSpecificationsVo") List<GoodSpecificationsVo> goodSpecificationsVo, @Param("goodsId") Long goodsId);

    List<GoodsSpecificationsEntity> findSpecificationsByGoodsId(@Param("goodsId") Long goodsId);

    Boolean deleteIds(@Param("specificationsIds") List<Long> specificationsIds);

    Boolean updateGoodspecificationVoById(@Param("goodSpecificationsVo") GoodSpecificationsVo goodSpecificationsVo);

}
